<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文件上传</title>
</head>
<body>
    <h2>文件上传</h2>
    <form action="/wbs20052/php03/011upload.php" method="post" enctype="multipart/form-data" >
        用户名:<input type="text" name="name" ><br>
        头像:<input type="file" name="headImage" ><br>
        <input type="submit" value="上传文件" >
    </form>
    <hr>

    <form action="/wbs20052/php03/012savefile.php" method="post" enctype="multipart/form-data" >
        商品名:<input type="text" name="name" ><br>
        图片:<input type="file" name="headImage" ><br>
        <input type="submit" value="上传图片" >
    </form>

    <img src="http://localhost/wbs20052/php03/013getImage.php?pid=33" alt="">

</body>
</html>